Socket
Socket
Sign inDemoInstall

filenamify-url

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filenamify-url

Convert a URL to a valid filename


Version published
Weekly downloads
57K
decreased by-14.4%
Maintainers
1
Weekly downloads
 
Created
Source

filenamify-url Build Status

Convert a URL to a valid filename

Install

$ npm install --save filenamify-url

Usage

var filenamifyUrl = require('filenamify-url');

filenamifyUrl('http://sindresorhus.com/foo?bar=baz');
//=> sindresorhus.com!foo!bar=baz

filenamifyUrl('http://sindresorhus.com/foo', {replacement: '🐴'});
//=> sindresorhus.com🐴foo

API

See the filenamify API.

License

MIT © Sindre Sorhus

Keywords

FAQs

Package last updated on 14 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc